package com.example.threemoni.service;

import com.example.threemoni.pojo.Goods;
import com.example.threemoni.pojo.Type;
import com.example.threemoni.pojo.vo.GoodsVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/10/25
 * @Version 1.0
 **/
public interface IGoodsService {
 //   List<GoodsVo> findGoods(Integer tid);

    PageInfo<GoodsVo> findGoods(Integer offset,Integer pagesize,Integer tid);

    int addGoods(Goods goods);

    List<Type> types();

    boolean save(Goods goods);

    boolean hasName(String gname);

    boolean delete(String ids);
}
